<?php
/**
 * Created by PhpStorm.
 * User: tangchao
 * Date: 19-4-20
 * Time: 下午3:42
 */

namespace Lib;


class SizeDrawDec implements DrawDec
{
    private $color;
    public function __construct($color = 'red')
    {
        $this->color = $color;
    }

    public function before()
    {
        // TODO: Implement before() method.
        echo '<div style="color: '.$this->color.'">';
    }
    public function after()
    {
        // TODO: Implement after() method.
        echo '</div>';
    }

}